/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wsapi.chat;

/**
 *
 * @author yangyan <y.os@qq.com>
 */
public class ChatMessage {

    private String toUser;
    private String message;
    private String fromUser;
    private long time;

    public ChatMessage() {
        time = System.currentTimeMillis();
    }

    public String getMessage() {
        return message;
    }

    public void setFromUser(String fromUser) {
        this.fromUser = fromUser;
    }

    public String getFromUser() {
        return fromUser;
    }

    public String getToUser() {
        return toUser;
    }

    public void setToUser(String toUser) {
        this.toUser = toUser;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }
}
